package awesome.cpu.gui;

import javax.swing.JOptionPane;

import awesome.cpu.structure.Component;

public class GUIOutput {

	public static void println(String output) {
		MainWindow.getInstance().appendOutput(output+"\n");
	}
	
	public static void clearBusOutput() {
		OutputGraph.clearAnimatedBus();
	}
	public static void addBusOutput(Component cfrom, int ifrom, Component cto, int ito) {
		OutputGraph.putAnimatedBus(cfrom, ifrom, cto, ito);
	}
	
	public static void outputError(String output) {
		JOptionPane.showMessageDialog(MainWindow.getInstance(), output);
	}
}
